﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="orderPrint.aspx.cs" Inherits="market.orderPrint" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>打印</title>
    <script type="text/javascript">
		function printPage() 
		{
			eval("printOrder" + ".style.display=\"none\";");
			window.print(); 
		}
	</script>
    <script type="text/javascript" src="Scripts/jquery-3.0.0.min.js"></script>
    <script type="text/javascript" src="Scripts/bootstrap.min.js"></script>
    <link href="Content/bootstrap.min.css" rel="stylesheet" type="text/css"/>
    <link href="Content/font-awesome.css" rel="stylesheet" type="text/css"/>
</head>
<body>
    <div class="container">
        <h3>订单信息</h3>
        <div class="row custom-list-row">
            <div class="col-xs-4 col-sm-4 col-md-4">
                订单号码：
            </div>
            <div class="col-xs-8 col-sm-8 col-md-8">
                <%=order.OrderNo%>
            </div>
        </div>
        <div class="row custom-list-row">
            <div class="col-xs-4 col-sm-4 col-md-4">
                下单日期：
            </div>
            <div class="col-xs-8 col-sm-8 col-md-8">
                <%=order.OrderTime%>
            </div>
            <br />
        </div>
        <div class="row custom-list-row">
            <div class="col-sm-12 col-md-12">
                订单信息
                <hr />
            </div>
        </div>
        <div class="row custom-list-row">
            <div class="col-xs-4 col-sm-4 col-md-4">
                订单状态：
            </div>
            <div class="col-xs-8 col-sm-8 col-md-8">
                <%=GetStatus(Convert.ToInt32((order.OrderNo).ToString()))%>
            </div>
        </div>
        <div class="row custom-list-row">
            <div class="col-xs-4 col-sm-4 col-md-4">
                配送方式：
            </div>
            <div class="col-xs-8 col-sm-8 col-md-8">
                <%=order.ShipType%>
            </div>
        </div>
        <div class="row custom-list-row">
            <div class="col-xs-4 col-sm-4 col-md-4">
                商品总金额：
            </div>
            <div class="col-xs-8 col-sm-8 col-md-8">
                <%=string.Format("{0:f}",order.ProductPrice)%>￥ 
            </div>
        </div>
        <div class="row custom-list-row">
            <div class="col-xs-4 col-sm-4 col-md-4">
                商品运费：
            </div>
            <div class="col-xs-8 col-sm-8 col-md-8">
                <%=string.Format("{0:f}",order.ShipPrice)%>￥
            </div>
        </div>
        <div class="row custom-list-row">
            <div class="col-xs-4 col-sm-4 col-md-4">
                订单总金额：
            </div>
            <div class="col-xs-8 col-sm-8 col-md-8">
                <%=string.Format("{0:f}",order.TotalPrice)%>￥
            </div>
        </div>
         <div class="row custom-list-row">
            <div class="col-xs-12 col-sm-12 col-md-12">
                收货人信息
                <hr />
            </div>
        </div>
        <div class="row custom-list-row">
            <div class="col-xs-4 col-sm-4 col-md-4">
                收货人姓名：
            </div>
            <div class="col-xs-8 col-sm-8 col-md-8">
                <%=order.ReceiverName%>
            </div>
        </div>
        <div class="row custom-list-row">
            <div class="col-xs-4 col-sm-4 col-md-4">
                联系电话：
            </div>
            <div class="col-xs-8 col-sm-8 col-md-8">
                <%=order.ReceiverPhone%>
            </div>
        </div>
        <div class="row custom-list-row">
            <div class="col-xs-4 col-sm-4 col-md-4">
                Email地址：
            </div>
            <div class="col-xs-8 col-sm-8 col-md-8">
                <%=order.ReceiverEmail%>
            </div>
        </div>
        <div class="row custom-list-row">
            <div class="col-xs-4 col-sm-4 col-md-4">
                收货人地址：
            </div>
            <div class="col-xs-8 col-sm-8 col-md-8">
                <%=order.ReceiverAddress%>
            </div>
        </div>
        <div class="row custom-list-row">
            <div class="col-xs-4 col-sm-4 col-md-4">
                邮政编码：
            </div>
            <div class="col-xs-8 col-sm-8 col-md-8">
                <%=order.ReceiverPostcode%>
            </div>
        </div>
        <div class="row custom-list-row">
            <div class="col-xs-12 col-sm-12 col-md-12">
                修改订单状态
                <hr />
            </div>
        </div>
        <div class="row custom-list-row">
            <div class="col-xs-4 col-sm-4 col-md-4">
          
            </div>
            <div class="col-xs-8 col-sm-8 col-md-8">
                <button type="button" onclick="printPage()" id="Button1" class="btn-primary">打印</button>
            </div>
        </div>
    </div>
</body>
</html>
